package com.wh.springbootssm.service;

import com.wh.springbootssm.mapper.UserMapper;
import com.wh.springbootssm.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: HuiEr
 * @Date: 2020/2/21 18:22
 * @Description
 */
@Service
@Transactional
public class UserService implements IUserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserById(int id) {
        return userMapper.findUserById(id);
    }
}
